package com.frogs.ucenter.dao.ibatis;

import java.util.Map;

import com.frogs.framework.base.dao.ibatis.BaseDaoIbatis;
import com.frogs.framework.util.PageList;
import com.frogs.ucenter.dao.UserIntegralBalanceDao;
import com.frogs.ucenter.entity.UserIntegralBalance;
import com.frogs.ucenter.entity.ext.UserAttentionInfoExt;
import com.frogs.ucenter.entity.ext.UserIntegralBalanceExt;
import com.ibatis.sqlmap.client.SqlMapClient;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Required;
import org.springframework.stereotype.Repository;

@Repository("userIntegralBalanceDao")
public class UserIntegralBalanceDaoImpl extends BaseDaoIbatis<UserIntegralBalance> implements UserIntegralBalanceDao {

    public UserIntegralBalanceDaoImpl() {
        super();
        setNameSpace( "user_integral_balance" );
    }

    @Required
    @Autowired
    public void setSqlMapClientAutowired(SqlMapClient sqlMapClient) {
        super.setSqlMapClient( sqlMapClient );
    }

	@Override
	public PageList<UserIntegralBalanceExt> selectExtByMap(
			Map<String, Object> params, int pageNo, int pageSize) {
		return queryforPageList(getNameSpace() + ".selectExtByMap", params, pageNo, pageSize);
	}
}